package com.bwie.system.mapper;

import com.bwie.common.pojo.res.LoginRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    /**
     * 根据用户名查询用户信息
     * @param userName
     * @return
     */
    LoginRes getUserByUserName(@Param("userName") String userName);

    /**
     * 根据手机号查询用户信息
     * @param phone
     * @return
     */
    LoginRes getUserByPhone(@Param("phone") String phone);
}
